package scau.zzf.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import scau.zzf.base.common.BaseController;
import scau.zzf.base.common.Result;
import scau.zzf.base.shiro.LoginHelper;

/**
 * Created by zzf on 2017/5/24.
 */
@Api(description = "公共接口",tags = "公共接口")
@RestController
@RequestMapping(value = "/common",produces = MediaType.APPLICATION_JSON_UTF8_VALUE   )
public class CommonController extends BaseController {
    /**
     * @author zzf
     * @return
     */
    @ApiOperation("登出")
    @PostMapping("/logout")
    Result userLogout() {
        return Result.Build(LoginHelper.logout()) ;
    }
}
